package com.ibeeking.found.common.enums.cs;


/**
 * 客诉处理状态
 */
public enum CustomerSupportOrderProcessStatusEnum {


    PROCESSING(1, "处理中"),
    PROCESSD(2, "已处理"),;


    private Integer code;

    private String name;

    public Integer getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
    }


    CustomerSupportOrderProcessStatusEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public static CustomerSupportOrderProcessStatusEnum getEnum(Integer code) {
        for (CustomerSupportOrderProcessStatusEnum enums : values()) {
            if (enums.code.equals(code)) {
                return enums;
            }
        }
        return null;
    }

}
